//
// Created by 49647 on 2021/11/15.
//
#include <stdlib.h>
#include <stdint.h>

void before() {
    uint8_t *a = malloc(10);
    uint8_t *b = malloc(5);
    if (xxx) {
        free(a);
        free(b);
        return;
    }
    if (xxx) {
        free(a);
        free(b);
        return;
    }
    free(a);
    free(b);
}

void after1() {
    uint8_t *a = malloc(10);
    uint8_t *b = malloc(5);
    if (xxx) {
        goto End;
    }
    if (xxx) {
        goto End;
    }

End:
    free(a);
    free(b);
}

void after2() {
    uint8_t *a = malloc(10);
    uint8_t *b = malloc(5);
    do {
        if (xxx) {
            break;
        }
        if (xxx) {
            break;
        }
    } while(0);
    free(a);
    free(b);
}
